package com._520it.crm.web.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com._520it.crm.domain.Guarantee;
import com._520it.crm.service.IGuaranteeService;
@Controller
public class GuaranteeController {
	@Autowired
	private IGuaranteeService service;
	@RequestMapping("/guarantee")
	public String index(){
		return "guarantee/index";
	}
	@RequestMapping("/guarantee_selectAll")
	@ResponseBody
	public List<Guarantee> selectAll(){
		return service.selectAll();
	}
}
